main(n)
{
	char c[15];
	for(n=1;gets(c);n++)
	{
		if(*c=='#')break;
		printf("Case %d: ",n);

		if(!strcmp("HELLO",c))puts("ENGLISH");
		else if(!strcmp("HOLA",c))puts("SPANISH");
		else if(!strcmp("HALLO",c))puts("GERMAN");
		else if(!strcmp("BONJOUR",c))puts("FRENCH");
		else if(!strcmp("CIAO",c))puts("ITALIAN");
		else if(!strcmp("ZDRAVSTVUJTE",c))puts("RUSSIAN");
		else puts("UNKNOWN");
		
	}
}
